
package org.csapi.schema.parlayx.common.v3_1;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for CallParticipantTerminationCause.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="CallParticipantTerminationCause">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="CallParticipantNoAnswer"/>
 *     &lt;enumeration value="CallParticipantBusy"/>
 *     &lt;enumeration value="CallParticipantNotReachable"/>
 *     &lt;enumeration value="CallParticipantHangUp"/>
 *     &lt;enumeration value="CallParticipantAborted"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "CallParticipantTerminationCause")
@XmlEnum
public enum CallParticipantTerminationCause {

    @XmlEnumValue("CallParticipantNoAnswer")
    CALL_PARTICIPANT_NO_ANSWER("CallParticipantNoAnswer"),
    @XmlEnumValue("CallParticipantBusy")
    CALL_PARTICIPANT_BUSY("CallParticipantBusy"),
    @XmlEnumValue("CallParticipantNotReachable")
    CALL_PARTICIPANT_NOT_REACHABLE("CallParticipantNotReachable"),
    @XmlEnumValue("CallParticipantHangUp")
    CALL_PARTICIPANT_HANG_UP("CallParticipantHangUp"),
    @XmlEnumValue("CallParticipantAborted")
    CALL_PARTICIPANT_ABORTED("CallParticipantAborted");
    private final String value;

    CallParticipantTerminationCause(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static CallParticipantTerminationCause fromValue(String v) {
        for (CallParticipantTerminationCause c: CallParticipantTerminationCause.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
